#{extends 'main.html' /}
#{set title:'Home' /}
<<!-- @author Dana Tubeileh 
This is the html page for opening the review requests for the reviewer where it contains two buttons accept and reject -->
<body style="background-color:yellow;">

<h2>
Your Review Requests :
</h2>
#{ifnot RRequests}
<p>
You Have No Review Requests !! 
</p>
#{/ifnot}
<table id="dataTable" background = "lightblue"; border="4">

<table id="dataTable" background = "Yellow"; border="4">
<tr>
<th style="background-color:Red;font-family:herculanum;font-size:20px">Review Request</th>
<th style="background-color:Red;font-family:herculanum;font-size:25px">Action</th>

#{list items:RRequests, as:'ReviewRequests'}
</tr>'
<td>
<ul><li> <h2>Please Review this !!!</h2> </li></ul>
 ${ReviewRequests.toString()} 
</td>
<td>
<form action="@{Application.AcceptRequest()}" method= "GET">
<div id="${ReviewRequests.id}">
<button  name="Open" type="submit" value="${ReviewRequests.id}">Accept</button>
</div>
<hr>
</form>
</td>
<td>
<div id="${ReviewRequests.id}">
<br>
<form action ="@{Application.RejectRequest()}" method="GET">
<div id="${ReviewRequests.id}">
<button  name="CLid" type="submit" value="${ReviewRequests.id}">Reject</button>
</form>
</div>
<hr>
</td>
#{/list}
<p>
<a href="@{Application.viewProfile()}">Back to Profile Page</a>





<script type="text/javascript">
function AcceptRequest_alert()
{
alert("It will be accepted shortly!");
}

function RejectRequest_alert()
{
alert("Sorry it's rejected!");
}
</script>


</body>

